package com.demo.shardingjdbc.service;

import com.demo.shardingjdbc.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @title 用户(User)表业务接口
 * @author hcj
 * @createDate 2018-11-22
 */
public interface UserService {
    List<User> selectSelective(User record);

    List<Map> selectSelectiveAndReturnMap(User record);

    List<User> selectSelectiveMaster(User record);

    int insertSelective(User record);

    int updateSelective(User record);

    int deleteById(Long userId);

    PageInfo queryPage(User record, Integer pageNum, Integer pageSize);

    List<Map> testLeftJoin(User record);

    List<Map> testUnion(User record);
}